/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.delogic.simuladorbancario.model;

/**
 *
 * @author julioVanni
 */
public enum ValidadorDocumentos {
    
    CPF(){
        public boolean valido(String s){
            if (s.length() == 11){
                return true;
            }
            return false;
        }
    },
    CNPJ(){
        public boolean valido(String s){
          if (s.length() == 14){
                return true;
            }
            return false;
        }
    };
    
    public abstract boolean valido(String s);
    
}
